import { LOGIN_TOKEN } from '../actionTypes'

function login (state = '', action) {
  switch (action.type) {
    case LOGIN_TOKEN:
      return action.payload
    default:
      return state
  }
}

export default login
